package com.game.game.service.account;

//import java.util.Date;

//import com.game.core.dbcs.DBCS;
//import com.game.core.service.ServiceContainer;
//import com.game.dbpersistence.game.bean.AccountBean;
//import com.game.dbpersistence.game.dao.IAccountBeanDao;

public class AccountHelper
{	
	public static int forbidAccount(int playerID, Long forbidTime)
	{
//		IAccountBeanDao dao = DBCS.getExector(IAccountBeanDao.class);
//		AccountBean bean = dao.selectAccountBeanByID_UNIQUE(playerID);
//		if (bean == null)
//			return 0;
//		AccountService accountService = ServiceContainer.getInstance().getPublicService(AccountService.class);
//		accountService.forbidAccount(bean.getAccount(), bean.getPlatform(), forbidTime);
//		bean = new AccountBean();
//		bean.setPlayerID(playerID);
//		bean.setForbidTime(new Date(forbidTime));
//		dao.updateForbidTimeAccountBean(bean);
		return 1;
	}
}
